#ifndef NEW_DYNAMIC_H
#define NEW_DYNAMIC_H

#include <QWidget>
#include <QTextEdit>
#include <QLabel>
#include <QDebug>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QString>
#include <QFileDialog>
#include <QImage>
#include <QPixmap>
#include "stydatabase.h"

class new_dynamic : public QWidget
{
    Q_OBJECT
public:
    explicit new_dynamic(QWidget *parent = 0);
    QVBoxLayout *layout;
    QVBoxLayout *btnLay;
    QHBoxLayout *buttomLay;
    QTextEdit *textEdit;
    QLabel *picLabel;
    QPushButton *cancel;
    QPushButton *ok;
    QPushButton *add;
    QString file_name;
    QImage *img;
    QPixmap photo;
    void paintEvent(QPaintEvent *event);
signals:
    void onNewDynamic(QString,QString);
public slots:
    void onBtnOkClicked(bool on);
    void onBtnCancelClicked(bool on);
    void onBtnAddClicked(bool on);
};

#endif // NEW_DYNAMIC_H
